// pages/my/my.js
const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    userinfo: {
      img: "../../resources/images/rebirths.jpg",
      name: "XJ",
      id: "18687729170_xj",
      grade: "青铜会员",
      integral: "39895"
    },
    order: [{
      img: "../../resources/images/system/basic.png",
      text: "待付款"
    }, {
      img: "../../resources/images/system/basic.png",
      text: "待收货"
    }, {
      img: "../../resources/images/system/basic.png",
      text: "待评价"
    }, {
      img: "../../resources/images/system/basic.png",
      text: "售后"
    }],
    money: [{
      num: 0,
      unit: "张",
      text: "优惠券"
    }, {
      num: 22.7,
      unit: "元",
      text: "账户余额"
    }, {
      num: 425,
      unit: "个",
      text: "豆豆"
    }, {
      num: 2,
      unit: "个",
      text: "红包"
    }],
    collection: {
      newgoods: 1,
      goods: 8,
      shop: 3,
      module: 0,
      footprint: 20
    },
    productList: [{
        img: "../../resources/images/product/1.jpg",
        name: "欧莱雅（LOREAL）奇焕光彩粉嫩透亮修颜霜 30ml（欧莱雅彩妆 BB霜 粉BB 遮瑕疵 隔离）",
        sale: 599,
        factory: 899,
        payNum: 2342
      },
      {
        img: "../../resources/images/product/2.jpg",
        name: "德国DMK进口牛奶  欧德堡（Oldenburger）超高温处理全脂纯牛奶1L*12盒",
        sale: 29,
        factory: 69,
        payNum: 999
      },
      {
        img: "../../resources/images/product/3.jpg",
        name: "【第2支1元】柔色尽情丝柔口红唇膏女士不易掉色保湿滋润防水 珊瑚红",
        sale: 299,
        factory: 699,
        payNum: 666
      },
      {
        img: "../../resources/images/product/4.jpg",
        name: "百雀羚补水保湿护肤品",
        sale: 1599,
        factory: 2899,
        payNum: 236
      },
      {
        img: "../../resources/images/product/5.jpg",
        name: "百草味 肉干肉脯 休闲零食 靖江精制猪肉脯200g/袋",
        sale: 599,
        factory: 899,
        payNum: 2399
      },
      {
        img: "../../resources/images/product/6.jpg",
        name: "短袖睡衣女夏季薄款休闲家居服短裤套装女可爱韩版清新学生两件套 短袖粉色长颈鹿 M码75-95斤",
        sale: 599,
        factory: 899,
        payNum: 2399
      },
      {
        img: "../../resources/images/product/7.jpg",
        name: "多功能实用小书架 木架 易拆卸 进口原木",
        sale: 599,
        factory: 899,
        payNum: 2342
      },
      {
        img: "../../resources/images/product/8.jpg",
        name: "时尚小圆桌旅行桌懒人桌",
        sale: 29,
        factory: 69,
        payNum: 999
      },
      {
        img: "../../resources/images/product/10.jpg",
        name: "万宝路床上四件套",
        sale: 1599,
        factory: 2899,
        payNum: 236
      },
      {
        img: "../../resources/images/product/9.jpg",
        name: "编不下去了 随便写点 将就看看就行 反正都是字",
        sale: 299,
        factory: 699,
        payNum: 666
      }
    ],
    test: [
      1, 2, 3, 4
    ]

  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    console.log("进入my")
  },

  test: function() {

    console.log("点击")
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {},

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {
    console.log('下拉刷新')
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {
    console.log('触底刷新')
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})